<?php

include_once 'class_mysql.php';
include_once 'function.php';
include_once 'function_fav.php';

if(isset($_GET['up']))
{
	$sid = incheck($_GET['up']);
	mysql_query("UPDATE `$top_man` SET `up` = `up` + '1' WHERE `sid` = $sid ");
}elseif(isset($_GET['down']))
{
	$sid = incheck($_GET['down']);
	mysql_query("UPDATE `$top_man` SET `down` = `down` + '1' WHERE `sid` = $sid ");
}else{
}

if(isset($_GET['from'])){
	$url = de_url($_GET['from']);
	header("location:$url");
}else{
	header("location:show.php?id=$sid");
}


